From: Dmitry Shachnev Date: Sat, 4 Jan 2025 18:20:12 +0000 (+0300) Subject: Use public version of PyLong_AsInt for Python >= 3.13 X-Git-Tag: archive/raspbian/5.15.18-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f4943a0e62beba27701809624fa20e6a2ebf31cc;p=pyside2.git Use public version of PyLong_AsInt for Python >= 3.13 Forwarded: no Gbp-Pq: Name Use-public-version-of-PyLong_AsInt-for-Python-3.13.patch --- diff --git a/sources/shiboken2/libshiboken/pep384impl.h b/sources/shiboken2/libshiboken/pep384impl.h index 440784e..323715b 100644 --- a/sources/shiboken2/libshiboken/pep384impl.h +++ b/sources/shiboken2/libshiboken/pep384impl.h @@ -183,6 +183,8 @@ LIBSHIBOKEN_API const char *PepType_GetNameStr(PyTypeObject *type); */ #ifdef Py_LIMITED_API LIBSHIBOKEN_API int _PepLong_AsInt(PyObject *); +#elif PY_VERSION_HEX >= 0x030D0000 +#define _PepLong_AsInt PyLong_AsInt #else #define _PepLong_AsInt _PyLong_AsInt #endif